package cn.dhnep.demo.service.impl;

import cn.dhnep.demo.pojo.Earnings;
import cn.dhnep.demo.pojo.Recharge;
import cn.dhnep.demo.pojo.Withdraw;
import cn.dhnep.demo.mapper.WithdrawMapper;
import cn.dhnep.demo.service.WithdrawService;
import cn.dhnep.demo.util.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dhn
 * @since 2021-08-19
 */
@Service
public class WithdrawServiceImpl extends ServiceImpl<WithdrawMapper, Withdraw> implements WithdrawService {

    @Resource
    private WithdrawMapper  withdrawMapper;

    @Override
    public List<Withdraw> selectPageList(Page page) {
        return withdrawMapper.selectPageList(page);
    }

    @Override
    public Integer selectPageCount(Page page) {
        return withdrawMapper.selectPageCount(page);
    }

    @Override
    public List<Recharge> selectRechargePageList(Page page) { return withdrawMapper.selectRechargePageList(page); }

    @Override
    public Integer selectRechargePageCount(Page page) { return withdrawMapper.selectRechargePageCount(page); }

    @Override
    public List<Earnings> selectEarningsPageList(Page page) {
        return withdrawMapper.selectEarningsPageList(page);
    }

    @Override
    public Integer selectEarningsPageCount(Page page) {
        return withdrawMapper.selectEarningsPageCount(page);
    }
}
